//
function checkUser(){

	var userName=document.regform.value;
	if(userName==""){
		window.alert(document.regform.userName.msg);
		document.regform.userName.focus();
		return false;
	}
	
}
//ע�ắ��
function regist(){
	if(userName){
		return false;
	}else{
		var em="dsfds#!@sdf";
		patrn = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
		var userName = document.regform.userName.value;
		var userPass1= document.regform.userPass1.value;
		var userPass2= document.regform.userPass2.value;
		var realName = document.regform.realName.value;
		var Pid      = document.regform.pid.value;
		var zip      = document.regform.zip.value;
		var phone    = document.regform.phone.value;
		var email    = document.regform.email.value;
		var qq       = document.regform.qq.value;
		var address  = document.regform.address.value;
		if(userName==""){
		window.alert(document.regform.userName.msg);
		document.regform.userName.focus();
		return false;
		}
		if(userPass1==""){
		window.alert(document.regform.userPass1.msg);
		document.regform.userPass1.focus();
		return false;
		}
		if(userPass2==""){
		window.alert(document.regform.userPass2.msg);
		document.regform.userPass2.focus();
		return false;
		}
		if(Pid==""){
		window.alert(document.regform.Pid.msg);
		document.regform.Pid.focus();
		return false;
		}
		if(zip==""){
		window.alert(document.regform.zip.msg);
		document.regform.zip.focus();
		return false;
		}
		if(address==""){
		window.alert(document.regform.address.msg);
		document.regform.address.focus();
		return false;
		}
		if (!patrn.test(em)){
			window.alert(document.regform.email.msg);
			document.regform.email.focus();
		    return false;
		}
	}
}